package MAgentAssignment;

import MAgentAssignment.ontology.FlightOntology;
import jade.content.lang.Codec;
import jade.content.lang.sl.SLCodec;
import jade.content.onto.Ontology;
import jade.core.Agent;

/**
 * Created by IntelliJ IDEA.
 * User: prageeth
 * Date: 2/16/12
 * Time: 2:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class PilotAgent extends Agent
{
    private Codec codec = new SLCodec();
    private Ontology ontology = FlightOntology.getInstance();

    @Override protected void setup()
    {

        getContentManager().registerLanguage( codec );
        getContentManager().registerOntology( ontology );
        // pilot agent is just the responsible person to make decisions on
        // changing flight agents routes as needed.
        // so if there is a problem in the plane and need to land immediately,
        // pilot agent has to change the corresponding flight agent.
        // at a given time only one pilot agent is allocated to flight agent.
        // but same pilot agent can be reused for different flights through out
    }
}
